package com.czjtxy.extraTerm.server;

import com.czjtxy.extraTerm.entity.DO.Tdept;

import java.sql.SQLException;
import java.util.List;

/**
 * @author ZhangYing
 * @class 软件1903
 * @studentID 19852035
 * @date 2021/7/1
 */
public interface DeptService {
    List<Tdept> getall() throws SQLException;

    Tdept getOne(int id) throws SQLException;

    void updateDept(Tdept tdept) throws SQLException;

    void deleteDept(String did) throws SQLException, ClassNotFoundException;

    void addDept(Tdept tdept) throws SQLException;

    List<Tdept> getPart(String name) throws SQLException;
}
